package com.young.design.pattern.prototype.deepclone;

public class DeepCloneTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        DeepProtoType deepProtoType = new DeepProtoType();
        System.out.println(deepProtoType);
        System.out.println(deepProtoType.getDeepCloneableTarget());

        DeepProtoType clone = deepProtoType.clone();
        System.out.println(clone);
        System.out.println(clone.getDeepCloneableTarget());

        DeepProtoType deepProtoType1 = deepProtoType.deepClone();
        System.out.println(deepProtoType1);
        System.out.println(deepProtoType1.getDeepCloneableTarget());
    }
}
